//
//  BSFooter.m
//  baisibudejie
//
//  Created by 陈博文 on 15/12/25.
//  Copyright © 2015年 陈博文. All rights reserved.
//

#import "BSFooter.h"


@interface BSFooter ()
/** logo(添加自己公司的 logo)*/
@property (nonatomic ,weak) UIImageView *logo;

@end

@implementation BSFooter


// 初始化
- (void)prepare
{
    [super prepare];
    
    self.stateLabel.textColor = [UIColor yellowColor];
    //    self.stateLabel.font
    //    [self setTitle:@"abc" forState:MJRefreshStateIdle];
    //    [self setTitle:@"ddd" forState:MJRefreshStateRefreshing];
    
    UIImageView *logo = [[UIImageView alloc] init];
    logo.contentMode = UIViewContentModeCenter;
    logo.image = [UIImage imageNamed:@"MainTitle"];
    [self addSubview:logo];
    self.logo = logo;
    
    // 关闭自动显示和隐藏的功能(需要开发者自己去显示和隐藏footer)
    //    self.automaticallyHidden = NO;
}

// 摆放子控件---在 footer 的下面进行添加
- (void)placeSubviews
{
    [super placeSubviews];
    
    self.logo.frame = CGRectMake(0, self.height, self.width, 60);
}


@end
